import { type App } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersistedState from "pinia-plugin-persistedstate";

const piniaInstaller = (app: App): void => {
  const pinia = createPinia();
  pinia.use(piniaPluginPersistedState);
  app.use(pinia);
};

export default piniaInstaller;
